package designmodel.factorymodel2.ex2.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 陈泰来
 * @version V1.0
 * @Project echo-java-base
 * @Title 抽象披萨
 * @Description *
 * @Package designmodel.factorymodel2.ex2.model
 * @date 2021/3/9 10:40 上午
 * @Copyright:学如逆水行舟，不进则退 .
 */
public abstract class Pizza {

    String name;
    String dough;
    String sauce;
    ArrayList<String> toppings = new ArrayList<>();

    public void cut() {
        System.out.println("切披萨成块儿");
    }

    public void box() {
        System.out.println("打包好");
    }

    public void bake() {
        System.out.println("放入烤箱烘烤25分钟");
    }

    /**
     * @return void
     * @author chentl
     * @description 准备披萨 (工厂方法)
     * @date 2021/3/9 10:58 上午
     * @params []
     */
    public abstract void prepare();

    /**
     * 获取名称
     *
     * @return
     */
    public String getName() {
        return name;
    }
}
